<template>
	<view>
		<view class="main">
			<view>可提现余额</view>
			<view class="money">￥{{money}}</view>
			<view class="loginbtn" @click="balance">
				<button>提现</button>
			</view>
		</view>
	</view>
</template>

<script>

	export default {
		data() {
			return {
				money:"",
			}
		},

		onLoad() {
			this.tui.request('/app/profit/withdrawal', 'GET', {},false,false,false,).then(res => {
				console.log(res);
				if (res.errno == 0) {
					this.bankCard = res.data.bankCard
					this.issuingBank = res.data.issuingBank
					this.money = res.data.balance
				} else {
			
				}
			
			})
		},
		
		//获取导航栏右侧的按钮事件
		onNavigationBarButtonTap(e) {
			console.log(e)
		
			uni.navigateTo({
				url: "/pages/distribution/Withdrawaldetails"
			})
			
		},
		
		
		methods: {
			balance(){
				uni.navigateTo({
					url:"/pages/distribution/balance"
				})
			}
		}
	}
</script>

<style lang='scss'>
	
	.main{
		width: 50%;
		margin: 0 auto;
		text-align: center;
		font-size:28upx;
		font-family:PingFang SC;
		font-weight:400;
		color:rgba(102,102,102,1);
		margin-top: 200upx;
		text-align: center;
	}
	.money{
		font-size:50upx;
		font-family:PingFang SC;
		font-weight:bold;
		color:rgba(51,51,51,1);
	}
	/* 按钮 */
	.loginbtn {
		width: 100%;
		margin: 0 auto;
		margin-top: 200upx;
	}
	
	.loginbtn button {
		margin-top: 20rpx;
		height: 88rpx;
		width: 100%;
		line-height: 88rpx;
		color: #ffffff;
		font-size: 32rpx;
		border-radius: 44rpx;
		outline: 0;
		display: block;
		margin: 0;
		font-family: inherit;
		background: #D14798;
	}
	
</style>
